#!/bin/bash
OPTIONS=("GOLD_SUPPORT" "HARDENING_SUPPORT" "BLUETOOTH_SUPPORT" "AVAHI_DAEMON" \
 "KODI_UPNP_SUPPORT" "KODI_OPTICAL_SUPPORT" "KODI_AIRPLAY_SUPPORT" \
 "KODI_AIRTUNES_SUPPORT" "KODI_SAMBA_SUPPORT" "WIRELESS_DAEMON" \
 "SAMBA_SUPPORT" "SAMBA_SERVER" "SFTP_SERVER" "OPENVPN_SUPPORT" \
 "WIREGUARD_SUPPORT" "NTFS3G" "INSTALLER_SUPPORT" "REMOTE_SUPPORT")

for OPT in "${OPTIONS[@]}"; do
  VAL=$(grep "$OPT" LibreELEC.tv/distributions/LibreELEC/options)
  if [[ ! "$VAL" ]]; then
    echo "Option '$OPT' not found"
  fi
done
